package ru.urfc.portal.model;

import java.util.Date;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;

//TODO remove it?
public class DeliveryRequest extends SpectrObject {
	public boolean isNeedReconciliations;
	public Date reconciliationsFrom;
	public Date reconciliationsTo;
	public boolean isNeedDbExtract;
	public boolean isNeedInvoiceFacture;
	public Date invoiceFactureFrom;
	public Date invoiceFactureTo;
	public boolean isNeedInvoice;
	public Date invoiceFrom;
	public Date invoiceTo;
	public String address;
	
	@XmlElementWrapper
	@XmlElement(name = "invoiceFactureId")
	public List<String> invoiceFacturesIds;

	@XmlElementWrapper
	@XmlElement(name = "invoiceId")
	public List<String> invoicesIds;

	public DeliveryRequest() {
	}

	public DeliveryRequest(Long id, boolean isNeedReconciliations,
			Date reconciliationsFrom, Date reconciliationsTo,
			boolean isNeedDbExtract, boolean isNeedInvoiceFacture,
			Date invoiceFactureFrom, Date invoiceFactureTo,
			boolean isNeedInvoice, Date invoiceFrom, Date invoiceTo, String address) {
		super(id);
		this.isNeedReconciliations = isNeedReconciliations;
		this.reconciliationsFrom = reconciliationsFrom;
		this.reconciliationsTo = reconciliationsTo;
		this.isNeedDbExtract = isNeedDbExtract;
		this.isNeedInvoiceFacture = isNeedInvoiceFacture;
		this.invoiceFactureFrom = invoiceFactureFrom;
		this.invoiceFactureTo = invoiceFactureTo;
		this.isNeedInvoice = isNeedInvoice;
		this.invoiceFrom = invoiceFrom;
		this.invoiceTo = invoiceTo;
		this.address = address;
	}
	
}
